<?php if($this->params['controller']=='pages'){
	$action = (isset($this->params['pass'][0]))?$this->params['pass'][0]:'display';
}else{
	$action = $this->params['action'];
}
?>
<ul class="file_toolbar">
	<li class="edit"><?php echo $html->link($html->image('firma/actions_16_edit_photo.png',array('title'=>__('Edit',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'edit',$gallery_id),
        array('escape'=>false,'class'=>'','onclick'=>"return hs.htmlExpand(this, { objectType: 'iframe' } )")); ?></li>
    <li class="edit"><?php echo $html->link($html->image('firma/actions_16_up.png',array('title'=>__('Delete File',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'up',$gallery_id),
        array('escape'=>false,'class'=>'')); ?></li> 
    <li class="edit"><?php echo $html->link($html->image('firma/actions_16_down.png',array('title'=>__('Delete File',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'down',$gallery_id),
        array('escape'=>false,'class'=>'')); ?></li> 
    <li class="edit"><?php echo $html->link($html->image('firma/actions_16_delete_photo.png',array('title'=>__('Delete File',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'delete',$gallery_id),
        array('escape'=>false,'class'=>'')); ?></li>          
</ul>